package com.guiji.quartz.task;

import com.guiji.quartz.domain.Ningbo;
import com.guiji.quartz.domain.WenzhouRuian;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @create: 2021-10-21 18:17
 **/
@Component("ningboTask")
public class NingboTask {
	private static final Logger log = LoggerFactory.getLogger(NingboTask.class);
	public void ningboTask() throws Exception {
		Long startTime = System.currentTimeMillis();
		Ningbo ningbo= new Ningbo();
		try {
			ningbo.mainMethod();
		} catch (Exception e) {
		}finally {
			log.info("NingboTask-end-:{}",System.currentTimeMillis()-startTime);
		}

	}
}
